import {
	request
} from '@/utils/request.js'

const baseUrl = 'https://yzsapi.qdxnhb.com/api' //正式地址
// 授权token
export const getLogin = (params) => {
	const url = `${baseUrl}/wxuser/wxregister`
	return request(url, 'post', params, 'form')
}
// 扫码进入
export const getStoreDetails = (params) => {
	const url = `${baseUrl}/user/store_details`
	return request(url, 'post', params, 'form')
}
// 下单
export const getCreateOrder = (params) => {
	const url = `${baseUrl}/count/create_weight`
	return request(url, 'post', params, 'form')
}
// 用户订单
export const getUserOrderList = (params) => {
	const url = `${baseUrl}/count/user_order_list`
	return request(url, 'post', params, 'form')
}

// 累计重量和金额
export const getUserDraw = (params) => {
	const url = `${baseUrl}/wxuser/user_draw`
	return request(url, 'post', params, 'form')
}
// 取消接口
export const getDrawWxdrawcan = (params) => {
	const url = `${baseUrl}/draw/wxdrawcan`
	return request(url, 'post', params, 'form')
}

// 提现
export const getDrawWxdraw = (params) => {
	const url = `${baseUrl}/draw/wxdraw`
	return request(url, 'post', params, 'form')
}
// 提现流水
export const getWxuserDrawList = (params) => {
	const url = `${baseUrl}/wxuser/draw_list`
	return request(url, 'post', params, 'form')
}